package com.vive.util;

import org.apache.commons.dbutils.DbUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class DynamicList extends ArrayList {
    private Map caches = new HashMap();
    private int startIndex = -1;
    private int endIndex = -1;
    private int rowsPerPage;

    public Object get(int index){
        index++;

        if((index > this.endIndex) || (index < this.startIndex)){
            caches.clear();
            startIndex = index;
            endIndex = startIndex + this.rowsPerPage - 1;

            int tempIndex = index + 1;

        }
        return null;
    };
}
